package com.xiangxiangjd.bean;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 处置批次
 * </p>
 *
 * @author 肖守凯
 * @since 2021-11-23
 */
@TableName("management_date_no")
@ApiModel(value="ManagementDateNo对象", description="处置批次")
@Data
public class ManagementDateNo extends Model<ManagementDateNo> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "处置id")
    @TableId("id")
    private Integer id;

    @ApiModelProperty(value = "处置单号")
    @TableField("management_odd_number")
    private String managementOddNumber;

    @ApiModelProperty(value = "处置状态 1待审批/2审批通过/3审批不通过")
    @TableField("management_state")
    private String managementState;

    @ApiModelProperty(value = "处置物品状态值 1调出/2已报废/3借出(校外)")
    @TableField("goods_state")
    private String goodsState;

    @ApiModelProperty(value = "不通过原因")
    @TableField("management_fail")
    private String managementFail;



    @ApiModelProperty(value = "处置审批人")
    @TableField("management_approval_user_id")
    private String managementApprovalUserId;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private String updateTime;

    @ApiModelProperty(value = "创建日期")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private String createTime;

    @ApiModelProperty(value = "申请人id")
    @TableField(value = "management_user_id")
    private String managementUserId;


    // 交接的所有航材 单件物品
    @ApiModelProperty(value = "处置的所有物品")
    @TableField(exist = false)
    private List<ManagementGoods> managementGoodsList;

    @ApiModelProperty(value = "申请人名称")
    @TableField(exist = false)
    private String managementUserName;



    @ApiModelProperty(value = "航材名字")
    @TableField(exist = false)
    private String unitName;


    @ApiModelProperty(value = "航材名字")
    @TableField(exist = false)
    private String name;



//    @ApiModelProperty(value = "航材名字")
//    @TableField(exist = false)
//    private String goodsNmae;







}
